package com.ktjiaoyu;

import com.ktjiaoyu.config.JavaConfig;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

@Configuration    // @Configuration注解非必须
// 扫描配置类所在的包
//@ComponentScan(basePackages = "com.ktjiaoyu.config")
// 导入主配置文件，主配置文件导入了其他配置文件
@ImportResource("classpath:applicationContext.xml")
@Import(JavaConfig.class)
public class MainApplication {
}
